package utn.frc.tsb.utils.ValerioFritelli.HashTable;

import utn.frc.tsb.utils.ValerioFritelli.SimpleList.SimpleList;

/**
 *
 * @author Horacio
 * @author José
 */


public class HashList extends HashTable
{
    private SimpleList mList;

    public HashList (int pSize)
    {
        super (pSize);
        mList = new SimpleList ();
    }

    @Override
    public void put (Comparable x)
    {
        if (!contains (x))
        {
            super.put (x);
            mList.addLast (x);
        }
    }

    public void startIterator ()
    {
        mList.startIterator ();
    }
    public boolean hasNext ()
    {
        return mList.hasNext ();
    }
    public Comparable next ()
    {
        return mList.next ();
    }
    public int size ()
    {
        return mList.size ();
    }
    public String toString ()
    {
        return mList.toString ();
    }

}
